<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>两单一表</title>
    <link href="css/common.css" rel="stylesheet"/>
    <link rel="stylesheet" href="fonts/iconfont.css" />
    <style type="text/css">
    	body{
    		background: #fff;
    	}
     .wait img{
     	width: 45px;
     	height: 45px;
     }
     .wait{
     	width: 15%;
     	text-align: center;
     	padding: 15px  0;
     }
     .procontent{
     	padding-left: 5%;
		padding-top: 20px;
		float: left;
     }
     .pro-name{
     	margin-top: 0;
     	font-size: 1.6rem;
     	color: #333;
     }
     .pro-time{
     	font-size: 1.4rem;
     	color: #999;
     }
     .icon-xiangqing{
 	    float: right;
	    margin-right: 25px;
	    margin-top: 35px;
     }
     .pro-detail{
     	border-bottom: 1px solid #eee;
     }
      .sech{
    		background: #fff;
    		height: 50px;
    		line-height: 50px;
	}
	#search{
		background-color: #eee;
		border: none;
		height: 30px;
		width: 92%;
		border-radius: 18px;
		text-indent: 7px;
	}
	input::-webkit-input-placeholder {
	  /* WebKit browsers */
	  text-align: center;
	}
	input:-moz-placeholder {
	  /* Mozilla Firefox 4 to 18 */
	  text-align: center;
	}
	input:-ms-input-placeholder {
	  /* Internet Explorer 10 */
	  text-align: center;
	}
	input::placeholder {
	  text-align: center;
	}
	.title{
		height: 35px;
		background: #FFF;
		margin: 5px 0;
		width: 92%;
	}
	.title div{
		color: #999;
		display: inline-block;
		width: 32%;
		text-align: center;
		font-size: 1.6rem;
		line-height: 30px;
		width: 49%;
		float: left;
	}
	.title-active span{
		color: rgb(60,163,255);
	}
	.title-active:before{
		content: '';
	    display: block;
	    width: 40px;
	    height: 3px;
	    left: 36%;
	    bottom: -32px;
	    background: #3CA3FF;
	    position: relative;
	}
    </style>
</head>
<body>
	<header class="nav">
		<i class="iconfont icon-fanhui" style="float: left;"></i>
	    <span>两单一表</span>
	</header>
	<div class="content" style="margin: 0 15px;">
		<div class="sech">
			<input type="" name="" id="search" value="" placeholder="输入关键字"/>
			<img id="sicon" src="img/sear.png" style="width: 15px;position: absolute;left: 37%;top: 68px;"/>
		</div>
		<div class="title">
			<div class="title-active" id="zhuban"><span>我主办的</span></div>
			<div id="canyu" style="border-left: 1px solid #eeeeee;border-right: 1px solid #eeeeee;"><span>我参与的</span></div>
		</div>
		<div>
			<div class="zhuban">
				<div class="pro-detail">
					<div style="float: left;" class="wait"> 
						<img src="img/form_03.png"/><br />
						<span style="color: #666;">已办结</span>
					</div>
					<div class="procontent">
						<p class="pro-name">市领导批示件</p>
						<p class="pro-time">办理期限：<span>2017-12-04 12:00</span></p>
					</div>
					<i class="icon-xiangqing iconfont "></i>
					<div class="clear">
					</div>
				</div>
				<div class="pro-detail">
					<div style="float: left;" class="wait"> 
						<img src="img/form_06.png"/><br />
						<span style="color: #666;">进展缓慢</span>
					</div>
					<div class="procontent">
						<p class="pro-name">市领导批示件</p>
						<p class="pro-time">办理期限：<span>2017-12-04 12:00</span></p>
					</div>
					<i class="icon-xiangqing iconfont "></i>
					<div class="clear">
					</div>
				</div>
				<div class="pro-detail">
					<div style="float: left;" class="wait"> 
						<img src="img/form_08.png"/><br />
						<span style="color: #666;">正常推进</span>
					</div>
					<div class="procontent">
						<p class="pro-name">市领导批示件</p>
						<p class="pro-time">办理期限：<span>2017-12-04 12:00</span></p>
					</div>
					<i class="icon-xiangqing iconfont "></i>
					<div class="clear">
					</div>
				</div>
				<div class="pro-detail">
					<div style="float: left;" class="wait"> 
						<img src="img/form_10.png"/><br />
						<span style="color: #666;">严重滞后</span>
					</div>
					<div class="procontent">
						<p class="pro-name">市领导批示件</p>
						<p class="pro-time">办理期限：<span>2017-12-04 12:00</span></p>
					</div>
					<i class="icon-xiangqing iconfont "></i>
					<div class="clear">
					</div>
				</div>
			</div>
			<div class="canyu">
				
			</div>
		</div>
	</div>
    <script src="js/common.js"></script>
    <script type="text/javascript">
		window.onload=function(){
			//点击切换模块
    		function toggle(box){
    			console.log(box);
    			document.getElementById(box).addEventListener('click',function(){
    				var x=this.parentNode.children;
    				for(var i=0;i<2;i++){
    					x[i].classList.remove('title-active');
    				}
    				this.classList.add('title-active');
    				var p=document.querySelector('.'+box).parentNode.children;
    				for(var i=0;i<2;i++){
    					p[i].style.display='none';
    				}
    				document.querySelector('.'+box).style.display='block';
    			})
    		}
    		toggle('zhuban');
    		toggle('canyu');
    		document.getElementById('search').addEventListener('input',function(){
    			if(this.value!=''){
    				document.getElementById('sicon').style.display='none';
    			}else{
    				document.getElementById('sicon').style.display='block';
    			}
    		})
    	}
    </script>
</body>
</html>